﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true" CodeBehind="SRSAddRequest.aspx.cs" Inherits="SRS.SRSAddRequest" %>
<asp:Content ID="Head" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">

  <div class="SRS_PageLayout">

    <table style="width: 100%;" border="1">
        <tr>
            <td class="style2">
                &nbsp;</td>
            <td class="style1">
                Description</td>
            <td>
                &nbsp;
            </td>
        </tr>
        <tr>
            <td class="style2">
                &nbsp;</td>
            <td class="style1">
                Submitted By</td>
            <td>
                &nbsp;
            </td>
        </tr>
        <tr>
            <td class="style2">
                &nbsp;</td>
            <td class="style1">
                Date Submitted</td>
            <td>
                &nbsp;
            </td>
        </tr>
        <tr>
            <td class="style2">
                &nbsp;</td>
            <td class="style1">
                Desired Start Date</td>
            <td>
                &nbsp;
            </td>
        </tr>
        <tr>
            <td class="style2">
                &nbsp;</td>
            <td class="style1">
                Desired Completion</td>
            <td>
                &nbsp;
            </td>
        </tr>
     </table>

      <asp:EntityDataSource ID="EntityDataSource1" runat="server" 
          ConnectionString="name=BaseSRSEntities" DefaultContainerName="BaseSRSEntities" 
          EnableFlattening="False" EntitySetName="Requests" 
          Select="it.[Description], it.[Priority]">
      </asp:EntityDataSource>

      <asp:FormView ID="FormView1" runat="server" CellPadding="4" 
          DataSourceID="EntityDataSource1" ForeColor="#333333">
          <EditItemTemplate>
              Description:
              <asp:TextBox ID="DescriptionTextBox" runat="server" 
                  Text='<%# Bind("Description") %>' />
              <br />
              Priority:
              <asp:TextBox ID="PriorityTextBox" runat="server" 
                  Text='<%# Bind("Priority") %>' />
              <br />
              <asp:LinkButton ID="UpdateButton" runat="server" CausesValidation="True" 
                  CommandName="Update" Text="Update" />
              &nbsp;<asp:LinkButton ID="UpdateCancelButton" runat="server" 
                  CausesValidation="False" CommandName="Cancel" Text="Cancel" />
          </EditItemTemplate>
          <EditRowStyle BackColor="#2461BF" />
          <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
          <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
          <InsertItemTemplate>
              Description:
              <asp:TextBox ID="DescriptionTextBox" runat="server" 
                  Text='<%# Bind("Description") %>' />
              <br />
              Priority:
              <asp:TextBox ID="PriorityTextBox" runat="server" 
                  Text='<%# Bind("Priority") %>' />
              <br />
              <asp:LinkButton ID="InsertButton" runat="server" CausesValidation="True" 
                  CommandName="Insert" Text="Insert" />
              &nbsp;<asp:LinkButton ID="InsertCancelButton" runat="server" 
                  CausesValidation="False" CommandName="Cancel" Text="Cancel" />
          </InsertItemTemplate>
          <ItemTemplate>
              Description:
              <asp:Label ID="DescriptionLabel" runat="server" 
                  Text='<%# Bind("Description") %>' />
              <br />
              Priority:
              <asp:Label ID="PriorityLabel" runat="server" Text='<%# Bind("Priority") %>' />
              <br />
          </ItemTemplate>
          <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
          <RowStyle BackColor="#EFF3FB" />
      </asp:FormView>

  </div>

</asp:Content>
